<div class="row">
    <div class="col-lg-8">
        <div class="panel m-b-none" >
            <div class='panel-heading'>
                <div class='row'>
                    <div class='col-lg-12'>
                        Choose the default currency to use for contributions
                    </div>
                </div>
            </div>
            <div class="panel-body m-b-none">
                <form action="<?php echo $this->Html->url(array('action' => 'save_settings', 'save_receipt_settings')); ?>" method ="post" id="receipt-settings-form" class="form form-horizontal">
                    <div class="row">
                        <div class="col-lg-12">
                            <div class="form-group">
                                <div class="col-lg-3 control-label">
                                    Receipt Generation:
                                </div>
                                <div class="col-lg-9 controls">
                                    <select id="receipt_mode" class="form-control inline input-s-lg">
                                        <?php
                                            foreach($receipt_mode_arr as $key => $value){
                                                $selected = '';
                                                if($receipt_settings['receipt_mode'] == $key){
                                                    $selected = 'selected';
                                                }
                                                ?>
                                                <option value="<?php echo $key; ?>" <?php echo $selected; ?>><?php echo $value; ?></option>
                                        <?php
                                            }
                                        ?>
                                    </select>
                                    <p class="text-xs text-muted m-t-sm">
                                        <i class="fa fa-info-circle"></i>
                                        Note: if you select "Manual Receipt Generation", the Receipt Prefix and Postfix will not be applied.
                                    </p>
                                </div>
                            </div>
                            <div class="form-group">
                                <div class="col-lg-3 control-label">
                                    Receipt Prefix:
                                </div>
                                <div class="col-lg-9 controls">
                                    <input  id="receipt_prefix" class="form-control inline input-s-lg" value="<?php echo $receipt_settings['receipt_prefix'] ;?>"/>
                                </div>
                            </div>
                            <div class="form-group">
                                <div class="col-lg-3 control-label">
                                    Receipt Postfix:
                                </div>
                                <div class="col-lg-9 controls">
                                    <input  id="receipt_postfix" class="form-control inline input-s-lg" value="<?php echo $receipt_settings['receipt_postfix'] ;?>"/>
                                </div>
                            </div>
                            <div class="form-group">
                                <div class="col-lg-3 control-label">
                                    Receipt Counter:
                                </div>
                                <div class="col-lg-9 controls">
                                    <input  id="receipt_counter" class="form-control inline input-s-lg" value="<?php echo $receipt_settings['receipt_counter'] ;?>"/>
                                </div>
                            </div>
                        </div>
                    </div>

                    <div class="form-group m-t-lg">
                        <div class="col-lg-3 control-label">
                            &nbsp;
                        </div>
                        <div class="col-lg-9 controls p-sm" id="receipt_settings_actions_btn">
                            <input type="button" id="save_receipt_settings"  class="btn btn-sm btn-info" value="Save Changes" />
                            <input type="button" class="btn btn-sm btn-white" value="Cancel" />
                        </div>
                        <div class="col-lg-9 controls p-sm" id="receipt_settings_loader" style="display: none">
                            <i class="fa fa-spinner fa fa-spin fa-2x"></i>
                            &nbsp; &nbsp;
                            Saving Please Wait ...

                        </div>
                    </div>
                </form>
            </div>
        </div>
    </div>
</div>